﻿package com.night.book.ui;

import android.app.Application;
import android.content.ComponentName;
import android.content.Context;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.util.Log;

import com.night.book.helper.BookDB;
import com.night.date.FinalDate;

public class MyApplication extends Application {

	public static BookDB bookDB;
	private static Context context;

	public static Context getContext() {
		return context;
	}

	private static void initDateBase() {
		bookDB = new BookDB(context, FinalDate.DATABASE_TABKE);
	}

	@Override
	public void onCreate() {
		super.onCreate();
		Log.i("hck", "oncreat");
		context = getApplicationContext();
		initDateBase();

	}

}
